<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	单层循环:<br />
	<strong>Movie list:</strong>
	<table>
		<%-- 类似于for循环 --%>
		<c:forEach var="movie" items="${movieList }" varStatus="movieLoopCount">
			<tr>
				<td>Count : ${movieLoopCount.count }</td><%-- 类似于for循环里的i --%>
				<td>${movie }</td>
			</tr>
		</c:forEach>
	</table>
	<br />
	双层循环:<br />
	<table>
		<tr>
			<td>Movies:</td>
		</tr>
		<c:forEach var="list" items="${movies }" varStatus="outLoop">
			<tr>
				<td>List ${outLoop.count }</td>
			</tr>
			<c:forEach var="movie" items="${list }" varStatus="inLoop">
				<tr>
					<td>Item ${inLoop.count }</td>
					<td>${movie }</td>
				</tr>
			</c:forEach>
		</c:forEach>
	</table>
</body>
</html>